<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$appConfigs.title}</title>

    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/{$page_theme | default: 'default'}/easyui.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/style/my.css">
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/javascript/my.js"></script>
    
</head> 
<body onpageshow="resetPagination('dg')">
    {datagrid id="dg" datasource="/invest/AssetsMarketService/findAll.do" view="i_assets_market"}
    {form id="dlg" view="i_assets_market" }
    
    <script>
    field_formatters.risk_level=function (value, row, index){
		if(value == 3)
			return '<font color="red">高</font>';
		else if(value == 2)
			return '<font color="orange">中</font>';
		else if(value == 1)
			return '<font color="green">低</font>';
		else if(value == 0)
			return '安全';
    }
    </script>
</body>
</html>